package lvcy.message.sender.builder;

import lvcy.message.entity.RequestEntity;

public abstract class DxtMessageSenderBuilder extends MessageSenderBuilder{

	
	protected String getPostData(RequestEntity request){
		String channel=request.getExtras().get("channel")==null?"1":request.getExtras().get("channel").toString();
		String sendTime=request.getExtras().get("sendTime")==null?"":request.getExtras().get("sendTime").toString();
		StringBuilder builder=new StringBuilder();
		builder.append("Account=").append(request.getAccount()).append("&");
		builder.append("Password=").append(request.getPassword()).append("&");
		builder.append("Content=").append(request.getContent()).append("&");
		builder.append("Channel=").append(channel).append("&");
		builder.append("SendTime").append(sendTime).append("&");
		return builder.toString();
	}
}
